if [ -d ../build ]; then
    rm -rf ../build/*
    cd ../build
else
    mkdir -p ../build && cd ../build
fi

cmake .. && \
make -j$nproc